package com.quzitech.efest.utils;

import java.util.List;

import com.quzitech.efest.protocol.ConCreteCmd.ITYPE;

public class InitChartYlist {
	public static List<Double> set(int Slotnotype, List<Double> ylist) {
		if (Slotnotype == 0) {
			return ylist;
		}
		switch (Slotnotype) {
		case ITYPE.LION:
			for (int i = 0; i < 4; i++) {
				switch (i) {
				case 0:
					ylist.set(0, 3.00);
					break;

				case 1:
					ylist.set(1, 3.43);
					break;
				case 2:
					ylist.set(2, 3.86);
					break;
				case 3:
					ylist.set(3, 4.30);
					break;

				}
			}

			break;
		case ITYPE.LIFEPO4:
			for (int i = 0; i < 4; i++) {
				switch (i) {
				case 0:
					ylist.set(0, 2.3);
					break;

				case 1:
					ylist.set(1, 2.8);
					break;
				case 2:
					ylist.set(2, 3.3);
					break;
				case 3:
					ylist.set(3, 3.8);
					break;

				}
			}
			break;
		case ITYPE.NI_CD:
			for (int i = 0; i < 4; i++) {
				switch (i) {
				case 0:
					ylist.set(0, 0.80);
					break;

				case 1:
					ylist.set(1, 1.03);
					break;
				case 2:
					ylist.set(2, 1.26);
					break;
				case 3:
					ylist.set(3, 1.50);
					break;

				}
			}
			break;
		case ITYPE.NI_MH:
			for (int i = 0; i < 4; i++) {
				switch (i) {
				case 0:
					ylist.set(0, 0.80);
					break;

				case 1:
					ylist.set(1, 1.03);
					break;
				case 2:
					ylist.set(2, 1.26);
					break;
				case 3:
					ylist.set(3, 1.50);
					break;

				}
			}
			break;

		}
		return ylist;
	}
}
